package com.mindata.blockchain.core.requestbody;

/**
 * @author wuweifeng wrote on 2018/3/7.
 */
public class InstructionBody {
	/**
	 * 指令的操作，增删改
	 */
	private byte operation;
	/**
	 * 操作的表名
	 */
	private String table;
	/**
	 * 具体内容
	 */
	private String json;
	/**
	 * 原始内容
	 */
	private String oldJson;
	/**
	 * 业务id
	 */
	private String instructionId;
	/**
	 * 私钥
	 */
	private String privateKey;
	/**
	 * 公钥
	 */
	private String publicKey;

	@Override
	public String toString() {
		return "InstructionBody{" + "operation=" + operation + ", table='" + table + '\'' + ", json='" + json + '\''
				+ ", oldJson='" + oldJson + '\'' + ", instructionId='" + instructionId + '\'' + ", privateKey='"
				+ privateKey + '\'' + ", publicKey='" + publicKey + '\'' + '}';
	}

	public String getOldJson() {
		return oldJson;
	}

	public void setOldJson(final String oldJson) {
		this.oldJson = oldJson;
	}

	public String getInstructionId() {
		return instructionId;
	}

	public void setInstructionId(final String instructionId) {
		this.instructionId = instructionId;
	}

	public String getPublicKey() {
		return publicKey;
	}

	public void setPublicKey(final String publicKey) {
		this.publicKey = publicKey;
	}

	public byte getOperation() {
		return operation;
	}

	public void setOperation(final byte operation) {
		this.operation = operation;
	}

	public String getTable() {
		return table;
	}

	public void setTable(final String table) {
		this.table = table;
	}

	public String getJson() {
		return json;
	}

	public void setJson(final String json) {
		this.json = json;
	}

	public String getPrivateKey() {
		return privateKey;
	}

	public void setPrivateKey(final String privateKey) {
		this.privateKey = privateKey;
	}
}
